package com.chenfan.mcn.dao;

import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.YearSupplementaryAgreement;
import com.chenfan.mcn.model.vo.YearSupplementaryAgreementVO;

import java.util.List;

/**
 * <p>
 * 年框合同补充协议 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2021-01-19
 */
public interface YearSupplementaryAgreementMapper extends EnhancedBaseMapper<YearSupplementaryAgreement> {

    /**
     * 年框合同补充协议详情
     *
     * @param yearId    {@link Long}
     * @param processId
     * @return {@link List<YearSupplementaryAgreementVO>}
     */
    List<YearSupplementaryAgreementVO> selectByYearId(Long yearId, Long processId);

    /**
     * 获取当前归档增量号
     * @param yearId
     * @return
     */
    Integer getCurrentArchiveIncrement(Long yearId);
}
